package pers.chao.cacheable.core.consts;

/**
 * Description: redis缓存策略
 *
 * @author W.Chao
 * @date 2020/9/19 23:29
 **/
public enum CacheStrategy {
	// key存在时不缓存
	ENC("EXIST NO CACHING"),
	// key不存在时缓存，存在时更新
	NECAEU("NOT EXIST CACHING AND EXIST UPDATING"),
	// 不缓存
	NC("NO CACHING");

	private String strategy;

	CacheStrategy(String strategy){
		this.strategy = strategy;
	}

	public String getStrategy() {
		return strategy;
	}
}
